package mars.ns.core

object Id {
    private var count: Int = 0

    private def inc: Int = {
        count += 1
        return count
    }
}

trait Id {
    val id = Id.inc
}